package day08_Extends.demo03_Extends;

public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.setAge(16);
        dog.setName("小花");
        dog.look();
        System.out.println(dog.getName());
        System.out.println(dog.getAge());
        Cat cat = new Cat();
        cat.zhua();
    }
}
